<?php

namespace App\Validators\Student;

use App\Validators\PassesValidator;
use \Prettus\Validator\Contracts\ValidatorInterface;
use \Prettus\Validator\LaravelValidator;

class StudentResumeValidator extends LaravelValidator
{
    use PassesValidator;
    protected $rulesMessages=[
        'student_id.required' => '学生ID是必填的',
        'start_date.required' => '时间是必填的',
        'end_date.required'  => '时间是必填的',
        'organization.required'  => '组织是必填的',
        'content.required'  => '学习单位是必填的',
        'certifier.required'  => '证明人是必填的',
    ];
    protected $rules = [
        ValidatorInterface::RULE_CREATE => [
            'student_id'=>'required',
            'start_date'=>'required',
            'end_date'=>'required',
            'organization'=>'required',
            'content'=>'required',
        ],
        ValidatorInterface::RULE_UPDATE => [],
   ];
}
